<template>
    <div>
        <h3>电影详情</h3>
        <!-- <p>电影ID: {{ $route.params.id }}</p> -->
        <p>电影ID: {{ id }}页面</p>
        <button @click="goBack">后退</button>
    </div>
</template>
<script setup>
import { useRouter } from 'vue-router';
const router = useRouter();
const goBack = () => {
    router.go(-1);
}
const props = defineProps({
    id: {
        type: String,
    }
});

</script>